<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>EOS.IO: eosio::datastream&lt; T &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="eos-logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">EOS.IO
   &#160;<span id="projectnumber">DAWN3.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceeosio.html">eosio</a></li><li class="navelem"><a class="el" href="classeosio_1_1datastream.html">datastream</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classeosio_1_1datastream-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">eosio::datastream&lt; T &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A data stream for reading and writing data in the form of bytes.  
</p>

<p><code>#include &lt;<a class="el" href="datastream_8hpp_source.html">datastream.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a72befc5c1f51a601ad07e7c8e61856f4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeosio_1_1datastream.html#a72befc5c1f51a601ad07e7c8e61856f4">datastream</a> (T start, <a class="el" href="group__types.html#ga7c94ea6f8948649f8d181ae55911eeaf">size_t</a> s)</td></tr>
<tr class="separator:a72befc5c1f51a601ad07e7c8e61856f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a928fbd3301caee3c64ea620442fb0e64"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeosio_1_1datastream.html#a928fbd3301caee3c64ea620442fb0e64">skip</a> (<a class="el" href="group__types.html#ga7c94ea6f8948649f8d181ae55911eeaf">size_t</a> s)</td></tr>
<tr class="memdesc:a928fbd3301caee3c64ea620442fb0e64"><td class="mdescLeft">&#160;</td><td class="mdescRight">Skips a specific number of bytes from this stream.  <a href="#a928fbd3301caee3c64ea620442fb0e64">More...</a><br /></td></tr>
<tr class="separator:a928fbd3301caee3c64ea620442fb0e64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1d8d46d5cf80745bbb00a6b8fee243a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeosio_1_1datastream.html#ae1d8d46d5cf80745bbb00a6b8fee243a">read</a> (char *d, <a class="el" href="group__types.html#ga7c94ea6f8948649f8d181ae55911eeaf">size_t</a> s)</td></tr>
<tr class="memdesc:ae1d8d46d5cf80745bbb00a6b8fee243a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads a specified number of bytes from this stream into a buffer.  <a href="#ae1d8d46d5cf80745bbb00a6b8fee243a">More...</a><br /></td></tr>
<tr class="separator:ae1d8d46d5cf80745bbb00a6b8fee243a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e42133f6f57a8c89e1db04abe44b342"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeosio_1_1datastream.html#a1e42133f6f57a8c89e1db04abe44b342">write</a> (const char *d, <a class="el" href="group__types.html#ga7c94ea6f8948649f8d181ae55911eeaf">size_t</a> s)</td></tr>
<tr class="memdesc:a1e42133f6f57a8c89e1db04abe44b342"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes a specified number of bytes into the stream from a buffer.  <a href="#a1e42133f6f57a8c89e1db04abe44b342">More...</a><br /></td></tr>
<tr class="separator:a1e42133f6f57a8c89e1db04abe44b342"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0a23aa024810028ce8669627577859d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeosio_1_1datastream.html#ad0a23aa024810028ce8669627577859d">put</a> (char c)</td></tr>
<tr class="memdesc:ad0a23aa024810028ce8669627577859d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes a byte into the stream.  <a href="#ad0a23aa024810028ce8669627577859d">More...</a><br /></td></tr>
<tr class="separator:ad0a23aa024810028ce8669627577859d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a001047d70942ab5beb836e498d9f9eab"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeosio_1_1datastream.html#a001047d70942ab5beb836e498d9f9eab">get</a> (unsigned char &amp;c)</td></tr>
<tr class="memdesc:a001047d70942ab5beb836e498d9f9eab"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads a byte from the stream.  <a href="#a001047d70942ab5beb836e498d9f9eab">More...</a><br /></td></tr>
<tr class="separator:a001047d70942ab5beb836e498d9f9eab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10ab58b7cc695366b42957f4b8ff56eb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeosio_1_1datastream.html#a10ab58b7cc695366b42957f4b8ff56eb">get</a> (char &amp;c)</td></tr>
<tr class="separator:a10ab58b7cc695366b42957f4b8ff56eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a090e80d1bddd21337b16b3fad76c551d"><td class="memItemLeft" align="right" valign="top">T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeosio_1_1datastream.html#a090e80d1bddd21337b16b3fad76c551d">pos</a> () const</td></tr>
<tr class="memdesc:a090e80d1bddd21337b16b3fad76c551d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the current position of the stream.  <a href="#a090e80d1bddd21337b16b3fad76c551d">More...</a><br /></td></tr>
<tr class="separator:a090e80d1bddd21337b16b3fad76c551d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69cbb57958a1ec6d66e6aa4bcc39ec23"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeosio_1_1datastream.html#a69cbb57958a1ec6d66e6aa4bcc39ec23">valid</a> () const</td></tr>
<tr class="separator:a69cbb57958a1ec6d66e6aa4bcc39ec23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac82f1102bb9593764a654dfbedb88328"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeosio_1_1datastream.html#ac82f1102bb9593764a654dfbedb88328">seekp</a> (<a class="el" href="group__types.html#ga7c94ea6f8948649f8d181ae55911eeaf">size_t</a> p)</td></tr>
<tr class="memdesc:ac82f1102bb9593764a654dfbedb88328"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the position within the current stream.  <a href="#ac82f1102bb9593764a654dfbedb88328">More...</a><br /></td></tr>
<tr class="separator:ac82f1102bb9593764a654dfbedb88328"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32df7a816da793f3183d235c67b042a7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga7c94ea6f8948649f8d181ae55911eeaf">size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeosio_1_1datastream.html#a32df7a816da793f3183d235c67b042a7">tellp</a> () const</td></tr>
<tr class="memdesc:a32df7a816da793f3183d235c67b042a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the position within the current stream.  <a href="#a32df7a816da793f3183d235c67b042a7">More...</a><br /></td></tr>
<tr class="separator:a32df7a816da793f3183d235c67b042a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af57bc94263dc08eb60b910a53645a052"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga7c94ea6f8948649f8d181ae55911eeaf">size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeosio_1_1datastream.html#af57bc94263dc08eb60b910a53645a052">remaining</a> () const</td></tr>
<tr class="memdesc:af57bc94263dc08eb60b910a53645a052"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of remaining bytes that can be read/skipped.  <a href="#af57bc94263dc08eb60b910a53645a052">More...</a><br /></td></tr>
<tr class="separator:af57bc94263dc08eb60b910a53645a052"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a72befc5c1f51a601ad07e7c8e61856f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a72befc5c1f51a601ad07e7c8e61856f4">&#9670;&nbsp;</a></span>datastream()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classeosio_1_1datastream.html">eosio::datastream</a>&lt; T &gt;::<a class="el" href="classeosio_1_1datastream.html">datastream</a> </td>
          <td>(</td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga7c94ea6f8948649f8d181ae55911eeaf">size_t</a>&#160;</td>
          <td class="paramname"><em>s</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a001047d70942ab5beb836e498d9f9eab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a001047d70942ab5beb836e498d9f9eab">&#9670;&nbsp;</a></span>get() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classeosio_1_1datastream.html">eosio::datastream</a>&lt; T &gt;::get </td>
          <td>(</td>
          <td class="paramtype">unsigned char &amp;&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Reads a byte from the stream </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c</td><td>reference to destination byte </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a10ab58b7cc695366b42957f4b8ff56eb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a10ab58b7cc695366b42957f4b8ff56eb">&#9670;&nbsp;</a></span>get() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classeosio_1_1datastream.html">eosio::datastream</a>&lt; T &gt;::get </td>
          <td>(</td>
          <td class="paramtype">char &amp;&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a090e80d1bddd21337b16b3fad76c551d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a090e80d1bddd21337b16b3fad76c551d">&#9670;&nbsp;</a></span>pos()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">T <a class="el" href="classeosio_1_1datastream.html">eosio::datastream</a>&lt; T &gt;::pos </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Retrieves the current position of the stream </p><dl class="section return"><dt>Returns</dt><dd>the current position of the stream </dd></dl>

</div>
</div>
<a id="ad0a23aa024810028ce8669627577859d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0a23aa024810028ce8669627577859d">&#9670;&nbsp;</a></span>put()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classeosio_1_1datastream.html">eosio::datastream</a>&lt; T &gt;::put </td>
          <td>(</td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Writes a byte into the stream </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c</td><td>byte to write </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ae1d8d46d5cf80745bbb00a6b8fee243a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1d8d46d5cf80745bbb00a6b8fee243a">&#9670;&nbsp;</a></span>read()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classeosio_1_1datastream.html">eosio::datastream</a>&lt; T &gt;::read </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga7c94ea6f8948649f8d181ae55911eeaf">size_t</a>&#160;</td>
          <td class="paramname"><em>s</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Reads a specified number of bytes from the stream into a buffer </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">d</td><td>pointer to the destination buffer </td></tr>
    <tr><td class="paramname">s</td><td>the number of bytes to read </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af57bc94263dc08eb60b910a53645a052"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af57bc94263dc08eb60b910a53645a052">&#9670;&nbsp;</a></span>remaining()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga7c94ea6f8948649f8d181ae55911eeaf">size_t</a> <a class="el" href="classeosio_1_1datastream.html">eosio::datastream</a>&lt; T &gt;::remaining </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the number of remaining bytes that can be read/skipped </p><dl class="section return"><dt>Returns</dt><dd>number of remaining bytes </dd></dl>

</div>
</div>
<a id="ac82f1102bb9593764a654dfbedb88328"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac82f1102bb9593764a654dfbedb88328">&#9670;&nbsp;</a></span>seekp()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classeosio_1_1datastream.html">eosio::datastream</a>&lt; T &gt;::seekp </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#ga7c94ea6f8948649f8d181ae55911eeaf">size_t</a>&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Sets the position within the current stream </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>offset relative to the origin </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a928fbd3301caee3c64ea620442fb0e64"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a928fbd3301caee3c64ea620442fb0e64">&#9670;&nbsp;</a></span>skip()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classeosio_1_1datastream.html">eosio::datastream</a>&lt; T &gt;::skip </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#ga7c94ea6f8948649f8d181ae55911eeaf">size_t</a>&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Skips a specified number of bytes from this stream </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td>The number of bytes to skip </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a32df7a816da793f3183d235c67b042a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a32df7a816da793f3183d235c67b042a7">&#9670;&nbsp;</a></span>tellp()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga7c94ea6f8948649f8d181ae55911eeaf">size_t</a> <a class="el" href="classeosio_1_1datastream.html">eosio::datastream</a>&lt; T &gt;::tellp </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Gets the position within the current stream </p><dl class="section return"><dt>Returns</dt><dd>p the position within the current stream </dd></dl>

</div>
</div>
<a id="a69cbb57958a1ec6d66e6aa4bcc39ec23"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69cbb57958a1ec6d66e6aa4bcc39ec23">&#9670;&nbsp;</a></span>valid()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classeosio_1_1datastream.html">eosio::datastream</a>&lt; T &gt;::valid </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a1e42133f6f57a8c89e1db04abe44b342"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e42133f6f57a8c89e1db04abe44b342">&#9670;&nbsp;</a></span>write()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classeosio_1_1datastream.html">eosio::datastream</a>&lt; T &gt;::write </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga7c94ea6f8948649f8d181ae55911eeaf">size_t</a>&#160;</td>
          <td class="paramname"><em>s</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Writes a specified number of bytes into the stream from a buffer </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">d</td><td>pointer to the source buffer </td></tr>
    <tr><td class="paramname">s</td><td>The number of bytes to write </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>contracts/eoslib/<a class="el" href="datastream_8hpp_source.html">datastream.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
